1. Lock Screen mode
There are two lock modes:
/** * Either a lock screen (an informational keyguard screen), or an unlock * screen (a means for unlocking the device) is shown at any given time. */ enum Mode { LockScreen, UnlockScreen }
Lockscreen is the default unlock method, which is generally called the "unlock" interface; unlockscreen is generally called the "unlock" interface.They are in a parallel relationship, that is, they will determine the case after en
Enabled
)
At + clck = "SC", 0, "$ pin"
If the execution is successful, return
OK
Otherwise, an error message is returned.
2.3
Query
Pin
Activation status
At + clck = "SC", 2
Executed successfully,
Return
+ Clck: 0 pin
Not activated,
Return
+ Clck: 1 pin
Not activated,
An error code is returned when execution fails.
2.4
Query
Sim
Lock status
At + cpin?
Execution successful
Return
+ Cpin: Ready
Sim
Unlocked
Return
+ Cpin: SIMPin
Sim
();
Munlockscreen = createunlockscreenfor (unlockmode );
Munlockscreenmode = unlockmode;
Addview (munlockscreen );
Updatescreen (mmode );
Execute the above program and then bring up the unlock interface. getunlockmode gets the lock type. There are usually three types:
Enum unlockmode {
Pattern, // pattern lock
Simpin, // enter the pin or Puk
Account // account lock
}
We can understand the above process. When the rild is started in the initial stage o
(mlockscreen);
Final Unlockmode Unlockmode = Getunlockmode ();
Munlockscreen = Createunlockscreenfor (unlockmode);
Munlockscreenmode = Unlockmode;
AddView (munlockscreen);
Updatescreen (Mmode);
Execute the above program and then eject the unlock interface, Getunlockmode get the lock type, usually three kinds:
Enum Unlockmode {
patterns,//pattern lock
simpin,//input PIN or PUK
account//ID lock
}
Through the above process we can k
();
Munlockscreen = createunlockscreenfor (unlockmode );
Munlockscreenmode = unlockmode;
Addview (munlockscreen );
Updatescreen (mmode );
Execute the above program and then bring up the unlock interface. getunlockmode gets the lock type. There are usually three types:
Enum unlockmode {
Pattern, // pattern lock
Simpin, // enter the pin or Puk
Account // account lock
}
Through the above process, we can know that during the system initialization phase w
Related logs of Radio:Log corresponding to logcat:
KeyguardUpdateMonitor:ACTION_SIM_STATE_CHANGEDKeyguardUpdateMonitor:handleSimStateChange:intentValue=PIN_REQUIMSimLockPatternKeyguardView:createUnlockScreenFor(SimPin);MSimLockPatternKeyguardView:Display SimUnlockScreen for sub:
1. Process:Msimicccardproxy. Java send broadcast broadcaststickyintent (,) (reason = pin parameter) Accept Broadcast class:
KeyguardUpdateMonitor.java TelephonyIntents.ACT
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.